<template>
  <div class="cityPage">
    <!-- {{shopData.num}} -->
    <div class="selectCity">
      <span class="iconfont icon-arrowLeft" @click="gohome"></span>
      详情列表
    </div>
    <div>
      {{shopData}}
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
  },
  data() {
    return {
      shopData:{}
    };
  },
  computed: {
  },
  methods: {
    gohome() {
      this.$router.push({ path: "/" });
    },
  },
  beforeCreate() {
    document.body.style.backgroundColor = "#ffffff";
  },
  beforeDestroy: function() {
    document.body.style.backgroundColor = "#f5f5f5";
  },
  watch:{
    shopData:function(n){
      console.log(n)
    }
  },
  mounted() {
    this.shopData = this.$route.query.item
  }
};
</script>
<style lang="less" scoped>
.selectCity {
  text-align: center;
  position: relative;
  background-color: #f7f7f7;
  font-size: 20/37.5rem;
  padding: 10/37.5rem 0;
  span {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
.iconfont {
  font-size: 20/37.5rem;
}
.city {
  padding: 10/37.5rem 10/37.5rem;
}
</style>